package com.ws.admin.post.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.ws.common.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 论坛-帖子
 * </p>
 *
 * @author weifucheng
 * @since 2019-11-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class Post extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 标题
     */
    private String title;

    /**
     * 内容
     */
    private String content;

    /**
     * 是否顶置
     */
    private String isTop;

    /**
     * 是否显示
     */
    private String isDisplay;

    /**
     * 发帖人id
     */
    private String posterId;

    /**
     * 发帖人用户名
     * */
    @TableField(exist = false)
    private String posterUserName;
}
